package com.ghxxzx.dagl.service.impl;

import com.ghxxzx.dagl.entity.Role;
import com.ghxxzx.dagl.mapper.RoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * desc:
 *
 * @author cx316
 * Created by cx316 on 2020-05-26.
 */
@Service
public class RoleServiceImpl {
    @Autowired
    RoleMapper roleMapper;

    public List<Role> getAllRole(){
        List<Role> roles = roleMapper.selectListNotAdmin();
        return roles;
    }
}
